package com.eight.paper.admin.domain.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.List;

@Data
public class QuestionChoice {
    @ApiModelProperty("题目")
    @NotBlank(message = "题目不能为空")
    @Size(min = 0, max = 1024, message = "题目长度不能超过1024个字符")
    private String title;

    @ApiModelProperty("解析")
    @Size(min = 0, max = 1024, message = "解析长度不能超过1024个字符")
    private String explain;

    @ApiModelProperty("试题答案")
    private String answer;

    @ApiModelProperty("小题分值")
    private BigDecimal score;

    @ApiModelProperty("考生得分")
    private BigDecimal examineeScore;

    @ApiModelProperty("正确标志")
    private Integer correct;

    @ApiModelProperty("选项")
    private List<QuestionOption> options;
}
